home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global lastballx, lastbally
- set lastballx to the locH of sprite 16
- set lastbally to the locV of sprite 16
- end
-
- on mouseUp
- global activity, lastballx, lastbally
- set the moveableSprite of sprite 15 to 0
- if the locH of sprite 16 > lastballx then
- repeat with x = 15 down to 1
- set the locH of sprite 16 to the locH of sprite 16 + x
- if (x mod 2) = 0 then
- set the locV of sprite 16 to the locV of sprite 16 + random(3)
- end if
- updateStage()
- end repeat
- else
- repeat with x = 15 down to 1
- set the locH of sprite 16 to the locH of sprite 16 - x
- if (x mod 2) = 0 then
- set the locV of sprite 16 to the locV of sprite 16 + random(3)
- end if
- updateStage()
- end repeat
- end if
- checkbounds(16)
- grav(16)
- set activity to 3
- end
-